home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
windownt
/
cshx86.zip
/
SAMPLES
/
BITS.CSH
< prev
next >
Wrap
Text File
|
1993-04-14
|
238b
|
11 lines
# Calculate the number of bits required to represent a numeric value as
# an integer.
# Copyright (c) 1989, 1990 by Hamilton Laboratories. All rights reserved.
proc bits ( n )
return ceil ( log2 ( n + 1 ) )
end
bits $argv